import importAll from '@base/utils/importAll'

import Vue from 'vue'
import Vuex from 'vuex'

const storeModules = importAll(require.context('@', true, /^\.\/[\s\S]+\/store\/[\s\S]+\.js$/), 'dev-base')
Vue.use(Vuex)
delete storeModules.index

const store = new Vuex.Store({
  modules: storeModules,
  strict: false
})

export default store